package com.yingsheng.bi.hks.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
public class SmsSendReq extends HksTransReq {

    private String userId;

    @ApiModelProperty(value = "场景码", notes = "需要短信认证的交易码", example = "user.wxAuthLogin")
    private String scene;

    @ApiModelProperty(value = "短信模板ID", notes = "短信模板不送的话场景码必须上送", example = "示例值：1400006666")
    private String templateId;

    @ApiModelProperty(value = "手机号", required = true, notes = "单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号")
    @NotEmpty
    @Length(min = 1, max = 200)
    private String[] mobiles;

    @ApiModelProperty(value = "模板参数", notes = "个数与短信模板变量对应", example = "示例值：[\"4370\"]")
    @NotEmpty
    private String[] params;

    public void setParam(String...params) {
        setParams(params);
    }

    public void setMobile(String...mobiles) {
        setMobiles(mobiles);
    }


}
